package tech.aistar.service.impl.userVerifiedImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import tech.aistar.entity.authordis.UserTable;
import tech.aistar.entity.daoyou.UserIdcard;
import tech.aistar.service.userVerifiedService.IUserVerifiedService;

/**
 * Created by lenovo on 2019/10/16.
 */
@Service
@Transactional
public class userVerifiedImpl implements IUserVerifiedService {

    @Autowired
    private IUserVerifiedService userVerifiedService;

    @Override
    public UserTable findByPhone(String phone) {
        UserTable user = userVerifiedService.findByPhone(phone);
        return user;
    }

    @Override
    public UserTable findUser(String idcard) {
        UserTable user = userVerifiedService.findUser(idcard);
        return user;
    }

    @Override
    public void saveUser(String birth, String idcard,Integer userid) {
        userVerifiedService.saveUser(birth, idcard,userid);
    }
}
